package com.itany.mapper;

import com.itany.pojo.ManagerUser;
import com.itany.pojo.ManagerUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ManagerUserMapper {
    long countByExample(ManagerUserExample example);

    int deleteByExample(ManagerUserExample example);

    int deleteByPrimaryKey(Integer id);

    // id
    int insert(ManagerUser record);
    // id
    int insertSelective(ManagerUser record);

    List<ManagerUser> selectByExample(ManagerUserExample example);

    ManagerUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ManagerUser record, @Param("example") ManagerUserExample example);

    int updateByExample(@Param("record") ManagerUser record, @Param("example") ManagerUserExample example);

    int updateByPrimaryKeySelective(ManagerUser record);

    int updateByPrimaryKey(ManagerUser record);

    void insertRoleManagerUser(@Param("userid")Integer id, @Param("roleid")Integer id1);

    List<ManagerUser> selectManagerUserWithRoles(@Param("username")String username);

    void deleteRoleManagerUser(@Param("userid")Integer uid);
}